$gwx_XC_37=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){
if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={};
}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {};
var e_={}
if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys;
var d_={}
if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines;
var f_={}
if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {};
var p_={}
__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {}
__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {};
__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {};
var z=__WXML_GLOBAL__.ops_set.$gwx_XC_37 || [];
function gz$gwx_XC_37_1(){
if( __WXML_GLOBAL__.ops_cached.$gwx_XC_37_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_37_1
__WXML_GLOBAL__.ops_cached.$gwx_XC_37_1=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([1,true])
Z([[7],[3,'color']])
Z([[7],[3,'show']])
Z([[7],[3,'title']])
Z([[7],[3,'waiting']])
Z([3,'formSubmit'])
Z([3,'infoBox'])
Z([[2,'!'],[[7],[3,'disabled']]])
Z(z[7])
Z([3,'cropperComplete'])
Z([[7],[3,'cropperOptions']])
Z([[7],[3,'is_preview']])
})(__WXML_GLOBAL__.ops_cached.$gwx_XC_37_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_37_1
}
__WXML_GLOBAL__.ops_set.$gwx_XC_37=z;
__WXML_GLOBAL__.ops_init.$gwx_XC_37=true;
var x=['./pages/realName/realNameB/realNameB.wxml'];d_[x[0]]={}
var m0=function(e,s,r,gg){
var z=gz$gwx_XC_37_1()
var bKL=_mz(z,'navigation-bar',['back',0,'color',1,'show',1,'title',2],[],e,s,gg)
_(r,bKL)
var oLL=_n('waiting-pop')
_rz(z,oLL,'waiting',4,e,s,gg)
_(r,oLL)
var xML=_n('form')
_rz(z,xML,'bindsubmit',5,e,s,gg)
var oNL=_n('view')
_rz(z,oNL,'class',6,e,s,gg)
var fOL=_v()
_(oNL,fOL)
if(_oz(z,7,e,s,gg)){fOL.wxVkey=1
}
var cPL=_v()
_(oNL,cPL)
if(_oz(z,8,e,s,gg)){cPL.wxVkey=1
}
fOL.wxXCkey=1
cPL.wxXCkey=1
_(xML,oNL)
_(r,xML)
var hQL=_mz(z,'wel-cropper',['bindcropdown',9,'cropperOptions',1],[],e,s,gg)
_(r,hQL)
var eJL=_v()
_(r,eJL)
if(_oz(z,11,e,s,gg)){eJL.wxVkey=1
}
eJL.wxXCkey=1
return r
}
e_[x[0]]=e_[x[0]]||{f:m0,j:[],i:[],ti:[],ic:[]}
if(path&&e_[path]){
return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[]
;g="$gwx_XC_37";var main=e_[path].f
if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1);
try{
main(env,{},root,global);
_tsd(root)
}catch(err){
console.log(err)
}
;g="";
return root;
}
}
}
}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_37();	if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/realName/realNameB/realNameB.wxml'] = [$gwx_XC_37, './pages/realName/realNameB/realNameB.wxml'];else __wxAppCode__['pages/realName/realNameB/realNameB.wxml'] = $gwx_XC_37( './pages/realName/realNameB/realNameB.wxml' );
	;__wxRoute = "pages/realName/realNameB/realNameB";__wxRouteBegin = true;__wxAppCurrentFile__="pages/realName/realNameB/realNameB.js";define("pages/realName/realNameB/realNameB.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){
"use strict";var a=getApp();Page({data:{show:!0,title:"实名认证-第二步",color:"#FFFFFF",disabled:!1,cropperOptions:{hidden:!0,src:"",mode:"",sizeType:[]},is_cut:!0,is_preview:!1,selectType:"",previewImg:"",just:"",just_all:"",back:"",back_all:"",realname:""},onLoad:function(a){this.setData({realname:a.realname}),this.getDetail()},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},getDetail:function(){var e=this;a.ajax({url:"User/User/getRealInfo",data:{},success:function(a){1e3==a.data.code?e.setData({detail:a.data.data,just:a.data.data.just[1]||"",just_all:a.data.data.just[0]||"",back:a.data.data.back[1]||"",back_all:a.data.data.back[0]||"",disabled:2==a.data.data.status||1==a.data.data.status}):e.setData({disabled:!1})}})},checkForm:function(e,t,s){return e==t&&(a.showToast(s),!0)},formSubmit:function(e){var t=e.detail.value;this.checkForm(t.just,"","请上传身份证正面照")||this.checkForm(t.back,"","请上传身份证反面照")||(t.type=1,a.ajax({url:"User/User/realAuth",data:t,success:function(e){a.showToast(e.data.msg),1e3==e.data.code&&setTimeout((function(){wx.navigateBack({delta:2})}),2e3)}}))},goBack:function(){wx.navigateBack({delta:1})},test:function(){this.setData({show:!1,is_cut:!0,cropperOptions:{hidden:!1,src:"/images/charged_suc.png",mode:"rectangle",sizeType:["original","compressed"],maxLength:1e3}})},selectImage:function(a){var e=this;e.setData({selectType:a.currentTarget.dataset.type}),wx.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(a){var t=a.tempFilePaths[0];e.setData({show:!1,is_cut:!0,cropperOptions:{hidden:!1,src:t,mode:"rectangle",sizeType:["original","compressed"],maxLength:1e3}})}})},cropperComplete:function(a){var e=a.detail.res;"rectangle"==this.data.cropperOptions.mode?this.setData({previewImg:e,show:!1,is_preview:!0}):wx.showModal({title:"",content:JSON.stringify(e)})},reCropper:function(){this.setData({previewImg:"",show:!1,is_preview:!1,is_cut:!0})},sureCropper:function(){var a=this.data,e=a.selectType,t=a.previewImg;this.setData({waiting:!0}),this.uploadImg(t,e),this.setData({show:!0,is_cut:!1,is_preview:!1,cropperOptions:{hidden:!0,src:"",mode:"",sizeType:[]}})},uploadImg:function(e,t){var s=this;wx.uploadFile({url:a.globalData._url+"api/Upload/uploadImg",filePath:e,name:"file",success:function(e){var i=JSON.parse(e.data);1e3==i.code?1==t?s.setData({just:i.data.url,just_all:i.data.all_url}):2==t&&s.setData({back:i.data.url,back_all:i.data.all_url}):a.showToast("上传失败，请重试"),s.setData({previewImg:"",selectType:"",waiting:!1})}})},previewImg:function(e){var t=e.currentTarget.dataset.url;wx.previewImage({urls:[t],success:function(){},fail:function(e){a.showToast("预览失败，请重试")}})}});
},{isPage:true,isComponent:true,currentFile:'pages/realName/realNameB/realNameB.js'});require("pages/realName/realNameB/realNameB.js");